#include "pch.h"
#include "ShaderPairLibrary.h"

ShaderPairLibrary::ShaderPairLibrary()
{
	this->shaderPairs = new List();
}

ShaderPairLibrary::~ShaderPairLibrary()
{
	delete this->shaderPairs;
}

// Adds a shader pair to the library and returns its index
int ShaderPairLibrary::Add(ShaderPair* shaderPair)
{
	return this->shaderPairs->Add(shaderPair);
}

// Removes a shader pair from the library
void ShaderPairLibrary::Remove(ShaderPair* shaderPair)
{
	this->shaderPairs->Remove(shaderPair);
}

// Gets the shader pair from the library given the Texture ID
ShaderPair* ShaderPairLibrary::GetShaderPair(int ShaderPairID)
{
	return (ShaderPair*)this->shaderPairs->GetItem(ShaderPairID);
}
